package com.aos.erp.schools.service.coach;


import com.aos.erp.common.bean.IPageBean;
import com.aos.erp.common.exception.BizException;
import com.aos.erp.schools.model.coach.*;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

public interface  CoachService {

    Coach getById(long id);

    void addBean(AddCoachRo addCoachRo) throws Exception;

    IPageBean<ShowCoachVo> queryByPage(QueryCoachRo queryCoachRo) throws Exception;

    void delCoach(long id) throws BizException;

    CoachInfoVo coachInfo(long id);

    int updateCoach(UpdateCoachRo updateCoachRo);
    /**
     * 根据驾校Id获取教练信息
     * @param schoolId 驾校ID
    * */
    IPage<Coach> queryCoachBySchoolId(Integer pageIndex,Integer pageSize,String schoolId,String name) throws BizException;
}